﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Uow;

namespace Volo.Abp.SqlSugarCore.Uow
{
    public class SqlSugarCoreDatabaseApi : IDatabaseApi, ISupportsSavingChanges
    {
        public ISqlSugarClient DbContext { get; }

        public SqlSugarCoreDatabaseApi(ISqlSugarClient dbContext)
        {
            DbContext = dbContext;
        }


        public Task SaveChangesAsync(CancellationToken cancellationToken = default)
        {
            return Task.CompletedTask;
        }
    }
}
